JBoss Community Archive (Read Only)

Teiid 8.3

Escaped Literal Syntax

Rather than relying on implicit conversion, datatype values may be expressed directly in SQL using escape syntax to define the type. Note that the supplied string value must match the expected format exactly or an exception will occur.

<scroll-title title="Escaped Literal Syntax">

Datatype

Escaped Syntax

DATE

{d 'yyyy-mm-dd'}

TIME

{t 'hh-mm-ss'}

TIMESTAMP

{ts 'yyyy-mm-dd hh:mm:ss.[fff...]'}

</scroll-title>

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 12:38:19 UTC, last content change 2013-03-14 16:27:45 UTC.